package net.sx.minemodule.mvp.model;

import com.kedll.library.adapter.MultiTypeAdapter;
import com.kedll.library.mvp.BaseModel;

import net.sx.minemodule.mvp.item.CommissionListItem;

/**
 * add shibo.zheng
 * 19/07/08
 * 提成详情界面model 请求数据成功放入此类
 */
public class CommissionListModel extends BaseModel<CommissionListItem> {

    /**
     * orderSn : GSE10ST34168AS68                   //订单编号
     * createTime : 2019-07-07T11:56:06.000+0000    //时间
     * integralSource : (秒杀抢购，600元)             //提成来源
     * totalRoyalty : 50                            //每（月/日）提成
     */

    private String orderSn;
    private String createTime;
    private String integralSource;
    private int totalRoyalty;

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getIntegralSource() {
        return integralSource;
    }

    public void setIntegralSource(String integralSource) {
        this.integralSource = integralSource;
    }

    public String getTotalRoyalty() {
        return String.valueOf(totalRoyalty);
    }

    public void setTotalRoyalty(int totalRoyalty) {
        this.totalRoyalty = totalRoyalty;
    }

    @Override
    public CommissionListItem createItem(MultiTypeAdapter adapter) {
        return new CommissionListItem(this);
    }
}
